﻿<%@ Control Language="C#" ClassName="AmortizationSchedule" Inherits="Dimok.Web.UI.TableControl" %>

<script runat="server">
	public int LoanID { get { return (int)Lib.GetProperty(Parent, "LoanID"); } }
</script>
<asp:UpdatePanel ID="upPayments" UpdateMode="Always" runat="server">
	<ContentTemplate>
<fieldset style="display:inline"><legend><label>Amortization</label></legend>
<UI:GridViewEx DataSourceID="dsSchedule" AllowPaging="false" PageSize="999" AllowSorting="true" runat="server" />
</fieldset>
</ContentTemplate>
</asp:UpdatePanel>
<DS:FunctionDataSource ID="dsSchedule" SelectViewName="PaymentScheduleByLoanID(@ID)" runat="server"
	SelectList="PaymentNumber P#,Mos,Days,Date_F Date,ToInterest Interest,ToPrinciple Principle,FinanceCharge [Running Interest],RemainingPrinciple Balance"
>
	<SelectParameters>
		<asp:ControlParameter PropertyName="Page.LoanID" Name="ID" Type="Int32" />
	</SelectParameters>
</DS:FunctionDataSource>
